package ConveyorBelt.Util;

import java.awt.Font;

import org.newdawn.slick.SlickException;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.effects.ColorEffect;

public class FontUtil {
	public static UnicodeFont uf = null;
	public static Font font = null;
	
	@SuppressWarnings("unchecked")
	public static void loadGameFont() {
		font = new Font("Zekton", Font.ITALIC, 20);
		try {
				Font font = new Font("Zekton", Font.ITALIC, 25);
				uf = new UnicodeFont(font, font.getSize(), font.isBold(), font.isItalic());
				uf.addAsciiGlyphs();
				uf.addGlyphs(400, 600);
				uf.getEffects().add(new ColorEffect(java.awt.Color.cyan));
				uf.loadGlyphs();
			} catch (SlickException e) {
			   e.printStackTrace();
			}
	}
	@SuppressWarnings("unchecked")
	public static void changeColor(java.awt.Color color) {
		uf.getEffects().add(new ColorEffect(color));
	}
}
